package com.crm.service.system.role.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.crm.model.system.role.pojo.Role;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    @Select("select * from crm_role where role_name = #{roleName}")
    public Role getByName(String roleName);
}
